package com.evildog.workspace.system.application.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * User request body
 * </p>
 *
 * @author evildog
 * @since 2020-07-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value="User查询参数/request body")
public class UserUpdateParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "头像")
    @NotBlank(message = "头像不能为空")
    private String avatar;

    @ApiModelProperty(value = "性别 0 男 1 女")
    @NotBlank(message = "性别不能为空")
    private Boolean gender;

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String email;


}
